;(function($){
	$(".gg").carousel({"imgs":["img/a1.jpg","img/a2.jpg","img/a3.jpg"],"delay":3000})
	var indObj = function(){
		var paint =function(){
			$.ajax({
				type:"get",
				url:"data/data.json",
				dataType:'JSON',
				success:function(res){
					var str='';
					$.each(res,function(i){
						str+='<li><div class="footshop thumbnail"><img src="'
								+res[i].img+'" alt="" /><p>'
								+res[i].title+'</p><span>￥'
								+res[i].price+'</span></div></li>';
					})
					$(".onefoot .footctx ul").append(str);
					
				}
			});
		}
		return {
			init:function(){
				paint();
			}
		}
	}();
	indObj.init();
})(jQuery);
异步xml	 